<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- <p>111</p>
    <p>222</p>
    <ul id="nav">
        <li>我的首页</li>
        <li>产品介绍</li>
        <li>联系方式</li>
    </ul> -->
    <input type="text" value="张三" placeholder="请输入姓名">
    <button>按钮</button>
    <input type="checkbox" class="inp2">
    <script>s
        const inp = document.querySelector('input')
        // inp.type = 'password'
        const but = document.querySelector('button')
        but.disabled = true

        const inp2 = document.querySelector('.inp2')
        



        // const lis = document.querySelectorAll('#nav li')
        // for (i = 0; i < lis.length; i++) {
        //     console.log(lis[i]);
        // }
        // lis[0].style.color = 'red'
        // const p = document.querySelector('p')
        // console.log(p);
        // p.style.color = 'blue'


    </script>
</body>

</html>